<?php

namespace App\Logic\Admin;

class ActionLogLogic
{
    /**
     * Notes:获取日志列表
     * 2025/7/17
     * @param $size
     * @return \Hyperf\Contract\LengthAwarePaginatorInterface
     */
    public function logs($size): \Hyperf\Contract\LengthAwarePaginatorInterface
    {
        return \App\Model\ActionLog::query()->orderByDesc('id')->paginate((int)$size);
    }
}